<?php /* Smarty version Smarty-3.0.7, created on 2011-09-11 17:19:21
         compiled from "D:\AonzWebDev\InnanaWorkspace\InnanaWebProject/themes/innana/webboard.tpl" */ ?>
<?php /*%%SmartyHeaderCode:188284e6c8b29713429-23244166%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bde8334bc11b50959d9e8b27cbb49e4d4504f0c8' => 
    array (
      0 => 'D:\\AonzWebDev\\InnanaWorkspace\\InnanaWebProject/themes/innana/webboard.tpl',
      1 => 1315734353,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '188284e6c8b29713429-23244166',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'D:\AonzWebDev\InnanaWorkspace\InnanaWebProject\tools\smarty\plugins\modifier.escape.php';
?><?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'Webboard'),$_smarty_tpl);?>
<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<!-- Webboard Template -->
<!-- <script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('content_dir')->value;?>
js/webboard.js"></script>-->

<script type="text/javascript">
$(function(){
//	$("#enter-topic").click(function(){
//			$("#form-enter-topic").submit();
//			return false;
//		});
});
</script>

<div id="my-webboard">
	<h4></h4>
	<ul class="block_content">
		<li class="title-bar">
			<div class="topic_logo"></div>
			<div class="topic">
				Topic					
			</div>
			<div class="replies">Replies</div>
			<div class="views">Views</div>
			<div class="post_info">
				Lasted Post Info
			</div>			
		</li>
		<?php  $_smarty_tpl->tpl_vars['topic'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('topics')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['topic']->key => $_smarty_tpl->tpl_vars['topic']->value){
?>
			<li class="topic_row">
				<?php if ($_smarty_tpl->tpl_vars['topic']->value['pin']=='Y'){?>
				<div class="topic_logo pin"></div>
				<?php }else{ ?>
				<div class="topic_logo unpin"></div>
				<?php }?>
				<div class="topic">
					<p>
						<a id="enter-topic" href="webboard.php?topic=<?php echo $_smarty_tpl->tpl_vars['topic']->value['topic_id'];?>
.1" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['topic']->value['topic_title'],'htmlall','UTF-8');?>
"><?php echo smarty_modifier_truncate(smarty_modifier_escape($_smarty_tpl->tpl_vars['topic']->value['topic_title'],'htmlall','UTF-8'),100);?>
</a>
					</p>
					<?php if ($_smarty_tpl->getVariable('adminUser')->value){?>
						<?php $_smarty_tpl->tpl_vars['pin_action'] = new Smarty_variable($_smarty_tpl->tpl_vars['topic']->value['pin'], null, null);?>
						<?php $_smarty_tpl->tpl_vars['topic_id'] = new Smarty_variable($_smarty_tpl->tpl_vars['topic']->value['topic_id'], null, null);?>
						<?php $_smarty_tpl->tpl_vars['type'] = new Smarty_variable('topic', null, null);?>
						<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./webboard-admin-panel.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
					<?php }?>		
				</div>
				<div class="replies"><?php echo $_smarty_tpl->tpl_vars['topic']->value['num_reply'];?>
</div>
				<div class="views"><?php echo $_smarty_tpl->tpl_vars['topic']->value['views'];?>
</div>
				<div class="post_info">
					<p class="author"><b>Author: </b><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['topic']->value['author'],'htmlall','UTF-8');?>
(<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['topic']->value['author_username'],'htmlall','UTF-8');?>
)<?php if ($_smarty_tpl->tpl_vars['topic']->value['show_admin_icon']==true){?><img class="admin_icon" src='<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
admin_icon.png' /><?php }?></p>
					<p class="posted"><b>Posted: </b><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['topic']->value['post_time'],'htmlall','UTF-8');?>
</p>
				</div>			
			</li>
			<!-- 
			<li class="space">
			</li>
			 -->
		<?php }} ?>
	</ul>
	<div class="footer">
		<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./webboard-pagination.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>	
		<div class="new_topic">
			<a id="button_new_topic" href="webboard.php?action=post&board=0.<?php echo $_smarty_tpl->getVariable('selectedPage')->value;?>
&back=<?php echo $_smarty_tpl->getVariable('back')->value;?>
" title="NEW TOPIC">NEW TOPIC</a>
		</div>
	</div>
</div>